package com.ruoyi.web.controller.epm;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.EpmInformation;
import com.ruoyi.system.service.IEpmEmployedOrNotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/Empment/employed")
public class EpmEmployedOrNotController extends BaseController {

    @Autowired
    private IEpmEmployedOrNotService iEpmEmployedOrNotService;

    /**
     * 查询已离职员工信息
     * */
    @PreAuthorize("@ss.hasPermi('Empment:employed:list')")
    @GetMapping(value = "/employedlist")
    public TableDataInfo emplist(EpmInformation epmInformation){
        startPage();
        List<EpmInformation> epmList = iEpmEmployedOrNotService.emplist(epmInformation) ;
        return getDataTable(epmList);
    }
}
